<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::Tuple Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classlibemb_1_1_tuple-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::Tuple Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>元组类(可以同时存储整数,浮点数,字符串)  
 <a href="classlibemb_1_1_tuple.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_base_type_8h_source.html">BaseType.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac687dc022d847aecaef901ce13d0be62"><td class="memItemLeft" align="right" valign="top"><a id="ac687dc022d847aecaef901ce13d0be62"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Tuple</b> (const <a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;)</td></tr>
<tr class="separator:ac687dc022d847aecaef901ce13d0be62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5a121b7903db029ca42f4eb077efa4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a9e5a121b7903db029ca42f4eb077efa4">initWithString</a> (const std::string &amp;tupleString)</td></tr>
<tr class="memdesc:a9e5a121b7903db029ca42f4eb077efa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用字符串初始化元组  <a href="classlibemb_1_1_tuple.html#a9e5a121b7903db029ca42f4eb077efa4">More...</a><br /></td></tr>
<tr class="separator:a9e5a121b7903db029ca42f4eb077efa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3713f88b70e5c451dff13fc5065cfef1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a3713f88b70e5c451dff13fc5065cfef1">size</a> ()</td></tr>
<tr class="memdesc:a3713f88b70e5c451dff13fc5065cfef1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取元组元素个数  <a href="classlibemb_1_1_tuple.html#a3713f88b70e5c451dff13fc5065cfef1">More...</a><br /></td></tr>
<tr class="separator:a3713f88b70e5c451dff13fc5065cfef1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9100df75768f69a0383b13e2d5751287"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a9100df75768f69a0383b13e2d5751287">type</a> ()</td></tr>
<tr class="memdesc:a9100df75768f69a0383b13e2d5751287"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取类型  <a href="classlibemb_1_1_tuple.html#a9100df75768f69a0383b13e2d5751287">More...</a><br /></td></tr>
<tr class="separator:a9100df75768f69a0383b13e2d5751287"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a439135fb79c2d927facb2f7029f164e8"><td class="memItemLeft" align="right" valign="top"><a id="a439135fb79c2d927facb2f7029f164e8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a439135fb79c2d927facb2f7029f164e8">clear</a> ()</td></tr>
<tr class="memdesc:a439135fb79c2d927facb2f7029f164e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空元组 <br /></td></tr>
<tr class="separator:a439135fb79c2d927facb2f7029f164e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3230c427a549805245663fdaf2f0f3a"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#ac3230c427a549805245663fdaf2f0f3a">serialize</a> ()</td></tr>
<tr class="memdesc:ac3230c427a549805245663fdaf2f0f3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">序列化  <a href="classlibemb_1_1_tuple.html#ac3230c427a549805245663fdaf2f0f3a">More...</a><br /></td></tr>
<tr class="separator:ac3230c427a549805245663fdaf2f0f3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e7c6be4fd307b8bf92069ded9a1071e"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a5e7c6be4fd307b8bf92069ded9a1071e"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a5e7c6be4fd307b8bf92069ded9a1071e">append</a> (const T &amp;item)</td></tr>
<tr class="memdesc:a5e7c6be4fd307b8bf92069ded9a1071e"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加元素  <a href="classlibemb_1_1_tuple.html#a5e7c6be4fd307b8bf92069ded9a1071e">More...</a><br /></td></tr>
<tr class="separator:a5e7c6be4fd307b8bf92069ded9a1071e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0547e8264b0fb46e86a01001c9c4621f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a0547e8264b0fb46e86a01001c9c4621f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a0547e8264b0fb46e86a01001c9c4621f">insert</a> (int idx, T &amp;item)</td></tr>
<tr class="memdesc:a0547e8264b0fb46e86a01001c9c4621f"><td class="mdescLeft">&#160;</td><td class="mdescRight">插入元素  <a href="classlibemb_1_1_tuple.html#a0547e8264b0fb46e86a01001c9c4621f">More...</a><br /></td></tr>
<tr class="separator:a0547e8264b0fb46e86a01001c9c4621f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28cd2151a632e24394dfcb071bfe6858"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_tuple_item.html">TupleItem</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a28cd2151a632e24394dfcb071bfe6858">operator[]</a> (int idx)</td></tr>
<tr class="memdesc:a28cd2151a632e24394dfcb071bfe6858"><td class="mdescLeft">&#160;</td><td class="mdescRight">重载[]运算阀  <a href="classlibemb_1_1_tuple.html#a28cd2151a632e24394dfcb071bfe6858">More...</a><br /></td></tr>
<tr class="separator:a28cd2151a632e24394dfcb071bfe6858"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7503b5065a95eed44d491d8af42939a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#a7503b5065a95eed44d491d8af42939a5">operator=</a> (const <a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;)</td></tr>
<tr class="memdesc:a7503b5065a95eed44d491d8af42939a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">重载赋值运算符  <a href="classlibemb_1_1_tuple.html#a7503b5065a95eed44d491d8af42939a5">More...</a><br /></td></tr>
<tr class="separator:a7503b5065a95eed44d491d8af42939a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:aad00eedd29f3827226050f4d0c20b56d"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_tuple.html#aad00eedd29f3827226050f4d0c20b56d">operator&lt;&lt;</a> (std::ostream &amp;os, <a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;tuple)</td></tr>
<tr class="memdesc:aad00eedd29f3827226050f4d0c20b56d"><td class="mdescLeft">&#160;</td><td class="mdescRight">重载流输出运算符  <a href="classlibemb_1_1_tuple.html#aad00eedd29f3827226050f4d0c20b56d">More...</a><br /></td></tr>
<tr class="separator:aad00eedd29f3827226050f4d0c20b56d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>元组类(可以同时存储整数,浮点数,字符串) </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a5e7c6be4fd307b8bf92069ded9a1071e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e7c6be4fd307b8bf92069ded9a1071e">&#9670;&nbsp;</a></span>append()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a>&amp; libemb::Tuple::append </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>增加元素 </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_tuple.html" title="元组类(可以同时存储整数,浮点数,字符串)">Tuple</a>&amp; </dd></dl>

</div>
</div>
<a id="a9e5a121b7903db029ca42f4eb077efa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e5a121b7903db029ca42f4eb077efa4">&#9670;&nbsp;</a></span>initWithString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::Tuple::initWithString </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>tupleString</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用字符串初始化元组 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tupleString</td><td>初始化字符串,如"(1,2.345,\"three")" </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 初始化成功 </dd>
<dd>
false 初始化失败 </dd></dl>

</div>
</div>
<a id="a0547e8264b0fb46e86a01001c9c4621f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0547e8264b0fb46e86a01001c9c4621f">&#9670;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a>&amp; libemb::Tuple::insert </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>item</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>插入元素 </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">idx</td><td></td></tr>
    <tr><td class="paramname">item</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_tuple.html" title="元组类(可以同时存储整数,浮点数,字符串)">Tuple</a>&amp; </dd></dl>

</div>
</div>
<a id="a7503b5065a95eed44d491d8af42939a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7503b5065a95eed44d491d8af42939a5">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp; libemb::Tuple::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;&#160;</td>
          <td class="paramname"><em>tuple</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>重载赋值运算符 </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_tuple.html" title="元组类(可以同时存储整数,浮点数,字符串)">Tuple</a>&amp; </dd></dl>

</div>
</div>
<a id="a28cd2151a632e24394dfcb071bfe6858"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28cd2151a632e24394dfcb071bfe6858">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_tuple_item.html">TupleItem</a> &amp; libemb::Tuple::operator[] </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>重载[]运算阀 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">idx</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_tuple_item.html" title="元组元素类">TupleItem</a>&amp; </dd></dl>

</div>
</div>
<a id="ac3230c427a549805245663fdaf2f0f3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3230c427a549805245663fdaf2f0f3a">&#9670;&nbsp;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::Tuple::serialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>序列化 </p>
<dl class="section return"><dt>Returns</dt><dd>std::string 序列化字符串 </dd></dl>

</div>
</div>
<a id="a3713f88b70e5c451dff13fc5065cfef1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3713f88b70e5c451dff13fc5065cfef1">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libemb::Tuple::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取元组元素个数 </p>
<dl class="section return"><dt>Returns</dt><dd>int 元素个数 </dd></dl>

</div>
</div>
<a id="a9100df75768f69a0383b13e2d5751287"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9100df75768f69a0383b13e2d5751287">&#9670;&nbsp;</a></span>type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libemb::Tuple::type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取类型 </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="aad00eedd29f3827226050f4d0c20b56d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad00eedd29f3827226050f4d0c20b56d">&#9670;&nbsp;</a></span>operator&lt;&lt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classlibemb_1_1_tuple.html">Tuple</a> &amp;&#160;</td>
          <td class="paramname"><em>tuple</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重载流输出运算符 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td></td></tr>
    <tr><td class="paramname">tuple</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::ostream&amp; </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_base_type_8h_source.html">BaseType.h</a></li>
<li>src/BaseType.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
